import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

/*
  Generated class for the LinergradientServiceProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class LinergradientServiceProvider {
  isShowPhoneBorder: boolean = false;
  isShowCodeBorder: boolean = false;
  isShowPasswordBorder: boolean = false;
  isShowRepasswordBorder: boolean = false;
  isShowNicknameBorder: boolean = false;
  isShowRealnameBorder: boolean = false; 
  isShowClassesBorder: boolean = false;
  isShowQQBorder: boolean = false;

  constructor(public http: HttpClient) {
    console.log('Hello LinergradientServiceProvider Provider');
  }
  // 失焦手机号
  blurShowPhoneBorder() {
    this.isShowPhoneBorder = false;
  }
  // 聚焦手机号
  focusShowPhoneBorder() {
    this.isShowPhoneBorder = true;
  }
  // 失焦验证码
  blurShowCodeBorder() {
    this.isShowCodeBorder = false;
  }

  // 聚焦验证码
  focusShowCodeBorder() {
    this.isShowCodeBorder = true;
  }
  // 失焦密码
  blurShowPasswordBorder() {
    this.isShowPasswordBorder = false;
  }
  // 聚焦密码
  focusShowPasswordBorder() {
    this.isShowPasswordBorder = true;
  }
  // 失焦重复验证密码
  blurShowRepasswordBorder() {
    this.isShowRepasswordBorder = false;
  }
  // 聚焦重复验证密码
  focusShowRepasswordBorder() {
    this.isShowRepasswordBorder = true;
  }
  // 失焦昵称
  blurShowNicknameBorder() {
    this.isShowNicknameBorder = false;
  }
  // 聚焦昵称
  focusShowNicknameBorder() {
    this.isShowNicknameBorder = true;
  }
  // 失焦真名
  blurShowRealnameBorder() {
    this.isShowRealnameBorder = false;
  }
  // 聚焦真名
  focusShowRealnameBorder() {
    this.isShowRealnameBorder = true;
  }
  // 失焦班级
  blurShowClassesBorder() {
    this.isShowClassesBorder = false;
  }
  // 聚焦班级
  focusShowClassesBorder() {
    this.isShowClassesBorder = true;
  }
  // 失焦QQ号
  blurShowQQBorder() {
    this.isShowQQBorder = false;
  }
  // 聚焦QQ号
  focusShowQQBorder() {
    this.isShowQQBorder = true;
  }
}
